<?php
/**
 * Clase Base Bean para BaseSoOrdenBN
 *
 * @package    G.Exp.
 * @subpackage BaseSoOrdenBN
 * @author     hans
 * @version    SVN:: BaseSoOrdenBN.class.php,v 1.1 2012-05-07 00:52:28 Hans.parra Exp $
 */
abstract class BaseSoOrdenBN
{
  protected $Id;
  protected $Tipo;
  protected $SoNum;
  protected $ClienteId;
  protected $ClienteNombre;
  protected $ClienteDocNum;
  protected $Contacto;
  protected $BillToNombre;
  protected $BillToDireccion1;
  protected $BillToDireccion2;
  protected $BillToCiudad;
  protected $BillToEstado;
  protected $BillToPais;
  protected $BillToCodPostal;
  protected $BillToSucursal;
  protected $ShipToNombre;
  protected $ShipToDireccion1;
  protected $ShipToDireccion2;
  protected $ShipToCiudad;
  protected $ShipToEstado;
  protected $ShipToPais;
  protected $ShipToCodPostal;
  protected $DelivParcialSw;
  protected $PoNum;
  protected $DocReferNum;
  protected $VendedorId;
  protected $FacturaNum;
  protected $Moneda;
  protected $TipoCambio;
  protected $CashCred;
  protected $Terms;
  protected $TermsDias;
  protected $Fecha;
  protected $FechaRequerida;
  protected $FechaProgramada;
  protected $FechaVcto;
  protected $Flete;
  protected $TotalBruto;
  protected $TotalImpuesto;
  protected $TotalDcto;
  protected $Neto;
  protected $Obs;
  protected $Status;
  protected $CreaUsr;
  protected $CreaFecha;
  protected $ModifUsr;
  protected $ModifFecha;
  protected $Mensaje;
  protected $Error;

  public function getId(){
    return $this->Id;
  }
  public function setId($v1){
    $this->Id = $v1; 
  }

  public function getTipo(){
    return $this->Tipo;
  }
  public function setTipo($v1){
    $this->Tipo = $v1; 
  }

  public function getSoNum(){
    return $this->SoNum;
  }
  public function setSoNum($v1){
    $this->SoNum = $v1; 
  }

  public function getClienteId(){
    return $this->ClienteId;
  }
  public function setClienteId($v1){
    $this->ClienteId = $v1; 
  }

  public function getClienteNombre(){
    return $this->ClienteNombre;
  }
  public function setClienteNombre($v1){
    $this->ClienteNombre = $v1; 
  }

  public function getClienteDocNum(){
    return $this->ClienteDocNum;
  }
  public function setClienteDocNum($v1){
    $this->ClienteDocNum = $v1; 
  }

  public function getContacto(){
    return $this->Contacto;
  }
  public function setContacto($v1){
    $this->Contacto = $v1; 
  }

  public function getBillToNombre(){
    return $this->BillToNombre;
  }
  public function setBillToNombre($v1){
    $this->BillToNombre = $v1; 
  }

  public function getBillToDireccion1(){
    return $this->BillToDireccion1;
  }
  public function setBillToDireccion1($v1){
    $this->BillToDireccion1 = $v1; 
  }

  public function getBillToDireccion2(){
    return $this->BillToDireccion2;
  }
  public function setBillToDireccion2($v1){
    $this->BillToDireccion2 = $v1; 
  }

  public function getBillToCiudad(){
    return $this->BillToCiudad;
  }
  public function setBillToCiudad($v1){
    $this->BillToCiudad = $v1; 
  }

  public function getBillToEstado(){
    return $this->BillToEstado;
  }
  public function setBillToEstado($v1){
    $this->BillToEstado = $v1; 
  }

  public function getBillToPais(){
    return $this->BillToPais;
  }
  public function setBillToPais($v1){
    $this->BillToPais = $v1; 
  }

  public function getBillToCodPostal(){
    return $this->BillToCodPostal;
  }
  public function setBillToCodPostal($v1){
    $this->BillToCodPostal = $v1; 
  }

  public function getBillToSucursal(){
    return $this->BillToSucursal;
  }
  public function setBillToSucursal($v1){
    $this->BillToSucursal = $v1; 
  }

  public function getShipToNombre(){
    return $this->ShipToNombre;
  }
  public function setShipToNombre($v1){
    $this->ShipToNombre = $v1; 
  }

  public function getShipToDireccion1(){
    return $this->ShipToDireccion1;
  }
  public function setShipToDireccion1($v1){
    $this->ShipToDireccion1 = $v1; 
  }

  public function getShipToDireccion2(){
    return $this->ShipToDireccion2;
  }
  public function setShipToDireccion2($v1){
    $this->ShipToDireccion2 = $v1; 
  }

  public function getShipToCiudad(){
    return $this->ShipToCiudad;
  }
  public function setShipToCiudad($v1){
    $this->ShipToCiudad = $v1; 
  }

  public function getShipToEstado(){
    return $this->ShipToEstado;
  }
  public function setShipToEstado($v1){
    $this->ShipToEstado = $v1; 
  }

  public function getShipToPais(){
    return $this->ShipToPais;
  }
  public function setShipToPais($v1){
    $this->ShipToPais = $v1; 
  }

  public function getShipToCodPostal(){
    return $this->ShipToCodPostal;
  }
  public function setShipToCodPostal($v1){
    $this->ShipToCodPostal = $v1; 
  }

  public function getDelivParcialSw(){
    return $this->DelivParcialSw;
  }
  public function setDelivParcialSw($v1){
    $this->DelivParcialSw = $v1; 
  }

  public function getPoNum(){
    return $this->PoNum;
  }
  public function setPoNum($v1){
    $this->PoNum = $v1; 
  }

  public function getDocReferNum(){
    return $this->DocReferNum;
  }
  public function setDocReferNum($v1){
    $this->DocReferNum = $v1; 
  }

  public function getVendedorId(){
    return $this->VendedorId;
  }
  public function setVendedorId($v1){
    $this->VendedorId = $v1; 
  }

  public function getFacturaNum(){
    return $this->FacturaNum;
  }
  public function setFacturaNum($v1){
    $this->FacturaNum = $v1; 
  }

  public function getMoneda(){
    return $this->Moneda;
  }
  public function setMoneda($v1){
    $this->Moneda = $v1; 
  }

  public function getTipoCambio(){
    return $this->TipoCambio;
  }
  public function setTipoCambio($v1){
    $this->TipoCambio = $v1; 
  }

  public function getCashCred(){
    return $this->CashCred;
  }
  public function setCashCred($v1){
    $this->CashCred = $v1; 
  }

  public function getTerms(){
    return $this->Terms;
  }
  public function setTerms($v1){
    $this->Terms = $v1; 
  }

  public function getTermsDias(){
    return $this->TermsDias;
  }
  public function setTermsDias($v1){
    $this->TermsDias = $v1; 
  }

  public function getFecha(){
    return $this->Fecha;
  }
  public function setFecha($v1){
    $this->Fecha = $v1; 
  }

  public function getFechaRequerida(){
    return $this->FechaRequerida;
  }
  public function setFechaRequerida($v1){
    $this->FechaRequerida = $v1; 
  }

  public function getFechaProgramada(){
    return $this->FechaProgramada;
  }
  public function setFechaProgramada($v1){
    $this->FechaProgramada = $v1; 
  }

  public function getFechaVcto(){
    return $this->FechaVcto;
  }
  public function setFechaVcto($v1){
    $this->FechaVcto = $v1; 
  }

  public function getFlete(){
    return $this->Flete;
  }
  public function setFlete($v1){
    $this->Flete = $v1; 
  }

  public function getTotalBruto(){
    return $this->TotalBruto;
  }
  public function setTotalBruto($v1){
    $this->TotalBruto = $v1; 
  }

  public function getTotalImpuesto(){
    return $this->TotalImpuesto;
  }
  public function setTotalImpuesto($v1){
    $this->TotalImpuesto = $v1; 
  }

  public function getTotalDcto(){
    return $this->TotalDcto;
  }
  public function setTotalDcto($v1){
    $this->TotalDcto = $v1; 
  }

  public function getNeto(){
    return $this->Neto;
  }
  public function setNeto($v1){
    $this->Neto = $v1; 
  }

  public function getObs(){
    return $this->Obs;
  }
  public function setObs($v1){
    $this->Obs = $v1; 
  }

  public function getStatus(){
    return $this->Status;
  }
  public function setStatus($v1){
    $this->Status = $v1; 
  }

  public function getCreaUsr(){
    return $this->CreaUsr;
  }
  public function setCreaUsr($v1){
    $this->CreaUsr = $v1; 
  }

  public function getCreaFecha(){
    return $this->CreaFecha;
  }
  public function setCreaFecha($v1){
    $this->CreaFecha = $v1; 
  }

  public function getModifUsr(){
    return $this->ModifUsr;
  }
  public function setModifUsr($v1){
    $this->ModifUsr = $v1; 
  }

  public function getModifFecha(){
    return $this->ModifFecha;
  }
  public function setModifFecha($v1){
    $this->ModifFecha = $v1; 
  }

  public function getMensaje(){
    return $this->Mensaje;
  }
  public function setMensaje($vl){
    $this->Mensaje = $vl;
  }

  public function getError(){
    return $this->Error;
  }
  public function setError($vl){
    $this->Error = $vl;
  }

  /* Recupera un objeto So_ordenBN desde un RecordSet */
  public static function retrieveByRs( $o_So_ordenRs )
  {
    $o_SoOrdenBN = new SoOrdenBN();
    $o_SoOrdenBN->setId( $o_So_ordenRs['id'] );
    $o_SoOrdenBN->setTipo( $o_So_ordenRs['tipo'] );
    $o_SoOrdenBN->setSoNum( $o_So_ordenRs['soNum'] );
    $o_SoOrdenBN->setClienteId( $o_So_ordenRs['clienteId'] );
    $o_SoOrdenBN->setClienteNombre( $o_So_ordenRs['clienteNombre'] );
    $o_SoOrdenBN->setClienteDocNum( $o_So_ordenRs['clienteDocNum'] );
    $o_SoOrdenBN->setContacto( $o_So_ordenRs['contacto'] );
    $o_SoOrdenBN->setBillToNombre( $o_So_ordenRs['billToNombre'] );
    $o_SoOrdenBN->setBillToDireccion1( $o_So_ordenRs['billToDireccion1'] );
    $o_SoOrdenBN->setBillToDireccion2( $o_So_ordenRs['billToDireccion2'] );
    $o_SoOrdenBN->setBillToCiudad( $o_So_ordenRs['billToCiudad'] );
    $o_SoOrdenBN->setBillToEstado( $o_So_ordenRs['billToEstado'] );
    $o_SoOrdenBN->setBillToPais( $o_So_ordenRs['billToPais'] );
    $o_SoOrdenBN->setBillToCodPostal( $o_So_ordenRs['billToCodPostal'] );
    $o_SoOrdenBN->setBillToSucursal( $o_So_ordenRs['billToSucursal'] );
    $o_SoOrdenBN->setShipToNombre( $o_So_ordenRs['shipToNombre'] );
    $o_SoOrdenBN->setShipToDireccion1( $o_So_ordenRs['shipToDireccion1'] );
    $o_SoOrdenBN->setShipToDireccion2( $o_So_ordenRs['shipToDireccion2'] );
    $o_SoOrdenBN->setShipToCiudad( $o_So_ordenRs['shipToCiudad'] );
    $o_SoOrdenBN->setShipToEstado( $o_So_ordenRs['shipToEstado'] );
    $o_SoOrdenBN->setShipToPais( $o_So_ordenRs['shipToPais'] );
    $o_SoOrdenBN->setShipToCodPostal( $o_So_ordenRs['shipToCodPostal'] );
    $o_SoOrdenBN->setDelivParcial_sw( $o_So_ordenRs['delivParcial_sw'] );
    $o_SoOrdenBN->setPoNum( $o_So_ordenRs['poNum'] );
    $o_SoOrdenBN->setDocReferNum( $o_So_ordenRs['docReferNum'] );
    $o_SoOrdenBN->setVendedorId( $o_So_ordenRs['vendedorId'] );
    $o_SoOrdenBN->setFacturaNum( $o_So_ordenRs['facturaNum'] );
    $o_SoOrdenBN->setMoneda( $o_So_ordenRs['moneda'] );
    $o_SoOrdenBN->setTipoCambio( $o_So_ordenRs['tipoCambio'] );
    $o_SoOrdenBN->setCashCred( $o_So_ordenRs['cashCred'] );
    $o_SoOrdenBN->setTerms( $o_So_ordenRs['terms'] );
    $o_SoOrdenBN->setTermsDias( $o_So_ordenRs['termsDias'] );
    $o_SoOrdenBN->setFecha( $o_So_ordenRs['fecha'] );
    $o_SoOrdenBN->setFechaRequerida( $o_So_ordenRs['fechaRequerida'] );
    $o_SoOrdenBN->setFechaProgramada( $o_So_ordenRs['fechaProgramada'] );
    $o_SoOrdenBN->setFechaVcto( $o_So_ordenRs['fechaVcto'] );
    $o_SoOrdenBN->setFlete( $o_So_ordenRs['flete'] );
    $o_SoOrdenBN->setTotalBruto( $o_So_ordenRs['totalBruto'] );
    $o_SoOrdenBN->setTotalImpuesto( $o_So_ordenRs['totalImpuesto'] );
    $o_SoOrdenBN->setTotalDcto( $o_So_ordenRs['totalDcto'] );
    $o_SoOrdenBN->setNeto( $o_So_ordenRs['neto'] );
    $o_SoOrdenBN->setObs( $o_So_ordenRs['obs'] );
    $o_SoOrdenBN->setStatus( $o_So_ordenRs['status'] );
    $o_SoOrdenBN->setCreaUsr( $o_So_ordenRs['creaUsr'] );
    $o_SoOrdenBN->setCreaFecha( $o_So_ordenRs['creaFecha'] );
    $o_SoOrdenBN->setModifUsr( $o_So_ordenRs['modifUsr'] );
    $o_SoOrdenBN->setModifFecha( $o_So_ordenRs['modifFecha'] );
    return $o_SoOrdenBN;
  }
}